public class Test {
    public static void main(String[] args) {
        int a = 10;
        int b = 20;
        int c = a + (b - a) >> 1;
        System.out.println(c);

    }





    public static void main27(String[] args) {
        int a = 10;
        int b = 20;
        int max = a > b ? a : b;
        System.out.println(max);
    }




    public static void main26(String[] args) {
        System.out.println(10 > 20 && 10 / 0 == 0);
        System.out.println(10 < 20 || 10 / 0 == 0);

    }



    public static void main25(String[] args) {
        int a = 10;
        int b = 20;
        System.out.println(a == 10 && b == 20);
        System.out.println(a == 10 && b < 100);
        System.out.println(a > 100 && b != 2);
        System.out.println(a < 100 && b > 100);
    }



    public static void main24(String[] args) {
        int a = 10;
        int b = 20;
        System.out.println(a == b);
        System.out.println(a != b);
        System.out.println(a < b);
        System.out.println(a > b);
        System.out.println(a <= b);
        System.out.println(a >= b);

    }



    public static void main23(String[] args) {
        int a = 1;
        int b=a++;
        System.out.println(b);
        System.out.println(a);
        a=1;
        int c=++a;
        System.out.println(c);
        System.out.println(a);
    }



    public static void main22(String[] args) {
        int a = 5;
        a += 2;
        System.out.println(a);
        a -= 2;
        System.out.println(a);
        a *= 2;
        System.out.println(a);
        a /= 2;
        System.out.println(a);
        a %= 2;
        System.out.println(a);
    }





    public static void main21(String[] args) {
        int a = 5;
        int b = 2;
        System.out.println(a + b);
        System.out.println(a - b);
        System.out.println(a * b);
        System.out.println(a*1.0 / b);
        System.out.println(a % b);
    }



    public static void main20(String[] args) {
        String a = "100";
        int num1 =Integer.valueOf(a);
        int num2 = Integer.parseInt(a);
        System.out.println(num1);
        System.out.println(num2);
    }








    public static void main19(String[] args) {
        //方法一：
        int a=10;
        String b=a+"";
        System.out.println(b);
        //方法二：
        System.out.println("-----------------");
        String c=String.valueOf(a);
        System.out.println(c);
    }



    public static void main18(String[] args) {
        String a="hello";
        String b="world";
        System.out.println(a);
        System.out.println(b);
        System.out.println(a+b);//拼接两个字符串
    }




    public static void main17(String[] args) {
        byte a=10;
        byte b=20;
       // byte c=a+b;
        int d=a+b;
    }





    public static void main16(String[] args) {
        int a=10;
        long b=20L;
        //int c=a+b;
        long d=a+b;
    }





    public static void main15(String[] args) {
        int a=128;
        byte b=10;
        b=(byte)a;
        System.out.println(b);
    }



    public static void main14(String[] args) {
        int a=10;
        boolean b=true;
        //a=(int)b;
    }



    public static void main13(String[] args) {
        int a = 10;
        long b = 100L;
        a = (int)b;
        System.out.println(a);
    }




    public static void main12(String[] args) {
        int a=10;
        long b=100L;
        b=a;//同为整型，a的范围小，b的范围大，当将a的值赋给b时，编译器会自动将a的类型变为long类型，然后赋值。
       // a=b;//同为整型，a的范围小，b的范围大，当将b的值赋给a时,编译器会报错，因为数据会丢失。
    }



    public static void main11(String[] args) {
        boolean a=true;
        boolean b=false;
        System.out.println(a);
        System.out.println(b);
    }


    public static void main10(String[] args) {
        char a='a';
        char b='1';//数字字符
        System.out.println(a);
        System.out.println(b);
    }




    public static void main9(String[] args) {
        float a=3.14f;
        System.out.println(a);
    }



    public static void main8(String[] args) {
        double a=1.1;
        System.out.println(a*a);
    }



    public static void main7(String[] args) {
        double a=5;
        double b=2;
        System.out.println(a/b);
    }



    public static void main6(String[] args) {
        double a=5.0;
        System.out.println(a);
    }



    public static void main5(String[] args) {
        byte a=5;
        System.out.println(a);
    }


    public static void main4(String[] args){
        short a=10;
        System.out.println(a);
    }



    public static void main3(String[] args) {
       long a=100L;
       long b=200l;
        System.out.println(a);
        System.out.println(b);
    }



    public static void main2(String[] args) {
        int a=10;
        System.out.println(a);
    }


    public static void main1(String[] args) {
            System.out.println("Hello World!");
            System.out.println(20);
            System.out.println(3.14);
            System.out.println('a');
            System.out.println(true);
            System.out.println(false);

    }

}
